
package com.scalar.chiptrack.operations.packingslip;

import java.util.Date;
import java.util.ArrayList;

public final class FinalInventoryData {
    
    public FinalInventoryData() {
    }
    private ArrayList dateCodeList = new ArrayList();

    public FinalInventoryData (  int csLineItemId,
                                 String mktPartNumber,
                                 String lotNumber,
								 String fabLotNumber,
                                 int lotId,
                                 int locationId,
                                 String vendorLocation,
                                 String dateCode,
                                 String stepName,
                                 Date dateIn,
                                 int quantityIn,
                                 int balance,
                                 int reservedQty,
                                 int quantityPull) 
    {
        m_csLineItemId = csLineItemId;
        m_mktPartNumber = mktPartNumber;
        m_locationId = locationId;
        m_vendorLocation = vendorLocation;
        m_lotId = lotId;
        m_lotNumber = lotNumber;
        m_fabLotNumber = fabLotNumber;
        m_stepName = stepName;
        m_dateIn = dateIn;
        m_quantityIn = quantityIn;
        m_balance = balance;
        m_reservedQty = reservedQty;
        m_quantityPull = quantityPull;
        
        if (dateCode != null) {
            m_dateCode = dateCode;
        }
    }

    public ArrayList getDateCodeList() {
        return dateCodeList;
    }

    public void setDateCodeList(ArrayList dateCodeList) {
        this.dateCodeList = dateCodeList;
    }

    /**
     * CustomerShipping LineItem ID property
     */
    private int m_csLineItemId = -1;
    
    public int getCsLineItemId() 
    {
        return m_csLineItemId;
    }
    
    public void setCsLineItemId( int csLineItemId ) 
    {
        m_csLineItemId = csLineItemId;
    }
    

    /**
     * Marketing PartNumber Property
     */
    private String m_mktPartNumber = null;
    
    public String getMktPartNumber() {
        return m_mktPartNumber;
    }
    public void setMktPartNumber (String mktPartNumber) {
        m_mktPartNumber = mktPartNumber;
    }
    
    
    /**
     * LocationId Property
     */
    private int m_locationId = -1;
    
    public int getLocationId() {
        return m_locationId;
    }
    
    public void setLocationId (int id) {
        m_locationId = id;
    }
    
    /**
     * vendor Location Property
     */
    private String m_vendorLocation = null;
    
    public String getVendorLocation() {
        return m_vendorLocation;
    }
    public void setVendorLocation (String vendorLocation) {
        m_vendorLocation = vendorLocation;
    }
    
    
    /**
     * LotId Property
     */
    private int m_lotId = -1;
    
    public int getLotId() {
        return m_lotId;
    }
    
    public void setLotId (int id) {
        m_lotId = id;
    }
    
    /**
     * Lot Number Property
     */
    private String m_lotNumber = null;
    
    public String getLotNumber() {
        return m_lotNumber;
    }
    public void setLotNumber (String lotNumber) {
        m_lotNumber = lotNumber;
    }
    
    /**
     * Fab Lot Number Property
     */
    private String m_fabLotNumber = null;
    
    public String getFabLotNumber() {
        return m_fabLotNumber;
    }
    public void setFabLotNumber (String fabLotNumber) {
    	m_fabLotNumber = fabLotNumber;
    }
    
    /**
     * Step Name Property
     */
    private String m_stepName = null;
    
    public String getStepName() {
        return m_stepName;
    }
    public void setStepName (String stepName) {
        m_stepName = stepName;
    }
    
    /**
     * Date In Property
     */
    private Date m_dateIn = null;
    
    public Date getDateIn() {
        return m_dateIn;
    }
    public void setDateIn (Date dateIn) {
        m_dateIn = dateIn;
    }
    
   
    /**
     * Quantity In Property
     */
    private int m_quantityIn = -1;
    
    public int getQuantityIn() {
        return m_quantityIn;
    }
    public void setQuantityIn (int quantityIn) {
        m_quantityIn = quantityIn;
    }
    
    /**
     * Balance Property
     */
    private int m_balance = -1;
    
    public int getBalance() {
        return m_balance;
    }
    public void setBalance (int balance) {
        m_balance = balance;
    }
    
    /**
     * Quantity Pull Property
     */
    private int m_quantityPull = -1;
    
    public int getQuantityPull() {
        return m_quantityPull;
    }
    public void setQuantityPull (int quantityPull) {
        m_quantityPull = quantityPull;
    }
    
    
    /**
     * Reserved Qty
     */
    private int m_reservedQty = -1;
    
    public int getReservedQty() {
        return m_reservedQty;
    }
    
    public void setReservedQty (int reservedQty) {
        m_reservedQty = reservedQty;
    }
    
    
    /**
     * Datecode .. property
     */
    private String m_dateCode = "";
    
    public String getDateCode() 
    {
        return m_dateCode;
    }
    
    public void setDateCode( String dateCode )
    {
        if( dateCode != null )
        {
            m_dateCode = dateCode;
        }
    }
 
    /**
     *
     */
    private int m_idForNewRow = -1;
    
    public int getIdForNewRow() 
    {
        return m_idForNewRow;
    }
    public void setIdForNewRow( int newId ) 
    {
        m_idForNewRow = newId;
    }
    
    public String toString() {
        StringBuffer buf = new StringBuffer();
        
        buf.append (" CS LI ID: ").append (m_csLineItemId);
        buf.append (", LI ID: ").append (m_lineItemId);
        buf.append (", Part Number: ").append (m_mktPartNumber);
        buf.append (", Lot ID: ").append (m_lotId);
        buf.append (", Lot Number: ").append (m_lotNumber);
        buf.append (", Entered By: ").append (m_lotEnteredBy);
        buf.append (", Is Reduce: ").append (m_isReduceBalance);
        buf.append (", Qty Pull: ").append (m_quantityPull);
        buf.append (", Qty Bal: ").append (m_balance);
        buf.append (", New ID: ").append (m_idForNewRow);
        buf.append (", Date Code: ").append (m_dateCode);

        return buf.toString();
    }

	/**
     * LocationId, Details Property Bhaskar added on 1 Jan 2004
     */
    private String m_locationDetails = null;
    
    public String getLocationDetails() {
        return m_locationDetails;
    }
    
    public void setLocationDetails (String locationDetail) {
        m_locationDetails = locationDetail;
    }

	/**
     * lineItemId Property Bhaskar added on 6 Jan 2004. This is actually not 
	 needed but inorder to maintain a unique key in Hashmap while converting
	 ArrayLists to Hashmaps this method can be used.
     */
    private int m_lineItemId = -1;
    
    public int getLineItemId() {
        return m_lineItemId;
    }
    
    public void setLineItemId (int lineItemId) {
        m_lineItemId = lineItemId;
    }

    private String m_lotEnteredBy = null;

    public String getLotEnteredBy() {
        return m_lotEnteredBy;
    }

    public void setLotEnteredBy(String lotEnteredBy) {
        this.m_lotEnteredBy = lotEnteredBy;
    }

    private int m_hiddenBalance = -1;

    public int getHiddenBalance() {
        return m_hiddenBalance;
    }

    public void setHiddenBalance(int hiddenBalance) {
        this.m_hiddenBalance = hiddenBalance;
    }

    private int m_isReduceBalance = -1;

    public int getIsReduceBalance() {
        return m_isReduceBalance;
    }

    public void setIsReduceBalance(int isReduceBalance) {
        this.m_isReduceBalance = isReduceBalance;
    }

    private int m_isHold = 1;

    public int getIsHold() {
        return m_isHold;
    }

    public void setIsHold(int isHold) {
        m_isHold = isHold;
    }


}